﻿@model IEnumerable<GongXianDCUI.Models.Funcitions>

<div class="Nav">
    <div class="tmenulist">
        <a href="~/home/index" onfocus="this.blur();" class="tmenu_link">网站首页</a>
    </div>
    <div class="NavLine"></div>
    @foreach (GongXianDCUI.Models.Funcitions item in Model)
    {
        if (item.ParentId == 0)
        {
            <div class="tmenulist">
                <a href="~/@item.MenuURL" target="_blank" onfocus="this.blur();" class="tmenu_link">@item.FunctionName</a>
                @if (item.Childrens.Count > 0)
                {
                    <ul style="display: none;" class="mul_II">
                        <div class="FloatLeft NavBox">
                            @foreach (var item2 in item.Childrens)
                            {
                                <div style="text-align:left;text-indent:2em;">
                                    <a href="~/FenBuList/ArticleList/@item2.FunctionId">@item2.FunctionName</a>
                                </div>
                            }
                        </div>
                        <div class="FloatRight">
                            <img src="@item.ModelPicture" style="width: 94px; height: 95px;" />
                        </div>
                    </ul>
                }
            </div>
            <div class="NavLine">
            </div>
        }
    }
</div>
